package com.wanxi.model;

public class StudentTest {
    public static void main(String[] args) {
        Student student = new Student();
        student.age = 18;
        int age = student.age;
        System.out.println(age);
        student.name = "张三";
        System.out.println(student.name);

        student.study();
        student.eat();
        student.age = 20;
        student.name = "李四";
        System.out.println("姓名：" + student.name);
        System.out.println("年龄：" + student.age);
        student.study(student.name);

    }
}
